<?php 

namespace Home\Event;

use Home\Dto;
use Home\Dto\BaseDto;
/**
* 
*/
abstract class ThirdAbstractEvent
{
    public $error;

    final public static function instance($channel)
    {
        $name = ucfirst($channel).'Third';
        $event = A("Home/{$name}", 'Event');
        if ($event instanceof ThirdAbstractEvent){
            return $event;
        }else{
            return null;
        }
    }


    abstract public function share(BaseDto $dto);


}

